package com.meituan.sdk.model.pms.reservation.queryBreakfast;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 查询在住房间早餐信息
* This file was automatically generated.
*/
@ApiMeta(
    path = "/pms/reservation/queryRoomBreakfastInfo",
    businessId = 57,
    apiVersion = "10041",
    apiName = "query_breakfast",
    needAuth = true
)
public class QueryBreakfastRequest implements MeituanRequest<QueryBreakfastResponse> {
    /**
    * <p data-diff-id="ct-diff-id-1946cbb4-bf33-4686-a657-113f79c4753c">酒店ID</p>
    */
    @NotNull(message = "hotelId不能为空")
    @SerializedName("hotelId")
    private Long hotelId;
    /**
    * <p data-diff-id="ct-diff-id-907ba7f3-2030-4bd4-9c74-7a9f1d6de075">房间号</p>
    */
    @NotBlank(message = "roomNumber不能为空")
    @SerializedName("roomNumber")
    private String roomNumber;
    /**
    * <p data-diff-id="ct-diff-id-decfdc00-f6cf-4466-8f95-81d19ece5040">占房ID</p>
    */
    @NotNull(message = "occupationId不能为空")
    @SerializedName("occupationId")
    private Long occupationId;

    public Long getHotelId() {
        return hotelId;
    }
    public void setHotelId(Long hotelId) {
        this.hotelId = hotelId;
    }
    public String getRoomNumber() {
        return roomNumber;
    }
    public void setRoomNumber(String roomNumber) {
        this.roomNumber = roomNumber;
    }
    public Long getOccupationId() {
        return occupationId;
    }
    public void setOccupationId(Long occupationId) {
        this.occupationId = occupationId;
    }


    @Override
    public MeituanResponse<QueryBreakfastResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<QueryBreakfastResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "QueryBreakfastRequest{" + "hotelId=" + hotelId + "," + "roomNumber=" + roomNumber + "," + "occupationId=" + occupationId + "}";
    }
}
